package com.example4.test4;

import java.util.Scanner;

/**
 * @Auther: shiquan
 * @Date: 2024/10/16 - 10 - 16 -10:56
 */
public class Test {
    public static void main(String[] args) {
        //键盘输入
        //nextInt(); 接受整数
        //nextDouble();接受小数
        //next();接受字符串

        //第二套体系
        //nextLine();接受字符串

      /*  Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num1 = sc.nextInt();
        System.out.println(num1);

        System.out.println("请输入第二个数");
        int num2 = sc.nextInt();
        System.out.println(num2);*/
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String line1 = sc.nextLine();
        System.out.println(line1);
    }
}
